package com.lee.controller;

import com.lee.api.LeeClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liyacai
 * @description
 * @data 2020-05-08
 */
@RestController
@RequestMapping("/consumer")
public class ConsumerController {

    @Autowired
    private LeeClientService clientService;


    @GetMapping("/list")
    public String list() {
        return String.format("消费者获取提供者数据[%s]", clientService.list());
    }

}
